package com.ruoyi.cms.domain.bo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站点业务对象 cms_website
 *
 * @author guorui
 * @date 2023-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmsWebsiteBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 站点名称
     */
    @NotBlank(message = "站点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 关键字
     */
    @NotBlank(message = "关键字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 描述
     */
    private String remark;

}
